package com.maben.easyui.service.impl;

import com.maben.easyui.mapper.UcModuleMapper;
import com.maben.easyui.pojo.UcModule;
import com.maben.easyui.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service(value = "menuService")
public class MenuServiceImpl implements MenuService {

    @Autowired
    private UcModuleMapper ucModuleMapper;

    @Override
    public List<UcModule> queryMenuListNoPage(String parentId) throws Exception {
        return ucModuleMapper.queryMenuListNoPage(new HashMap<String,Object>(){{
            put("parentId",parentId);
        }});
    }
}
